package com.jiaz.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jiaz.dto.UserBaseDTO;
import com.jiaz.entity.User;
import com.jiaz.pojo.UserCheckInFreq;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author jiajiazi
 * @version 1.0
 * @date 2022/4/24 16:09
 */
@Mapper
public interface UserMapper extends BaseMapper<User> {

    void updateUserSimilaryByBatch(UserCheckInFreq[] userCheckInFreq);

    /**
     * 用户特征偏好
     * @param userId
     * @return
     */
    List<UserBaseDTO> getUserCategory(int userId);

}
